package com.hziee.inm.product.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hziee.common.utils.PageUtils;
import com.hziee.common.utils.Query;

import com.hziee.inm.product.dao.CommoditiesDao;
import com.hziee.inm.product.entity.CommoditiesEntity;
import com.hziee.inm.product.service.CommoditiesService;


@Service("commoditiesService")
public class CommoditiesServiceImpl extends ServiceImpl<CommoditiesDao, CommoditiesEntity> implements CommoditiesService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CommoditiesEntity> page = this.page(
                new Query<CommoditiesEntity>().getPage(params),
                new QueryWrapper<CommoditiesEntity>()
        );

        return new PageUtils(page);
    }

}